package com.hehao.java_basic.design_mode.structural.decorator;

import java.util.List;

/**
 * @author Damon
 * @date 2023/10/29/22:16
 */
public class CarMat extends Goods{
    public CarMat(Car car) {
        super(car);
    }

    @Override
    public int getPrice() {
        return super.getPrice() + 200;
    }

    @Override
    public List<String> getNames() {
        List<String> names = super.getNames();
        names.add("全车真皮脚垫");
        return names;
    }
}
